package com.study.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

// 等价于 <bean id="user" class="com.study.entity.User">
// @Component 组件
@Component
public class User {

    // 相当于 <property name="name" value="傻逼啊"/>
    @Value("傻逼啊")
    public String name ;
}
